<script type="text/javascript" detail="true" src="${base}/scripts/kcgl/nblldetail.js"></script>
<div id="lldmxForm" method="post" class="easyui-tabs" fit="true" detail="true">
    <input name="lld.id" type="hidden" value="${(lld.id)!''}"/>

    <div title="领料信息" style="height: 100%;overflow-y: auto">
        <table style="width: 99%;margin: 5px" class="tb tab-t t-bor">
            <col width="70px"/>
            <col width=""/>
            <col width="70px"/>
            <col width=""/>
            <col width="70px"/>
            <col width=""/>
            <tr>
                <th>发料公司：</th>
                <td>
                ${(lld.flgs.jc)!}
                </td>
                <th>发料部门：</th>
                <td>
                ${(lld.flbm.jc)!}
                </td>
                <th>提货仓库：</th>
                <td>
                ${(lld.thck.mc)!}
                </td>
            </tr>
            <tr>
                <th>领料公司：</th>
                <td>
                ${(lld.llgs.jc)!}
                </td>
                <th>领料部门：</th>
                <td>
                ${(lld.llbm.jc)!}
                </td>
                <th>领&nbsp;料&nbsp;&nbsp;人：</th>
                <td>
                ${(lld.llr.xm)!}
                </td>
            </tr>
            <tr>
                <th>开单日期：</th>
                <td>
                ${(lld.kdrq)!}
                </td>
                <th>开&nbsp;单&nbsp;&nbsp;人：</th>
                <td>
                ${(lld.kdr)!}
                </td>
                <th>状&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;态：</th>
                <td>
                <#if (lld.zt)??&&(lld.zt)=='ybc'>已保存<#elseif (lld.zt)??&&(lld.zt)=='ysp'>
                    已审核<#elseif (lld.zt)??&&(lld.zt)=='yfl'>已发料</#if>
                </td>
            </tr>
            <tr>
                <th>发料日期：</th>
                <td>
                ${(lld.flrq)!}
                </td>
                <th>发&nbsp;料&nbsp;&nbsp;人：</th>
                <td colspan="2">
                ${(lld.flr.xm)!}
                </td>
            </tr>
        </table>
    </div>
    <div title="领料明细">
        <table id="lld_mx_table">
        </table>
    </div>
    <div title="领料打印">
        <div id="-toolbar">
            <div class="PTools">
                <ul class="niu">
                    <li><span class="xuan">选择打印机：</span>
                        <select class="ze" name="" style="">
                            <option>——默认——</option>
                        </select>
                    </li>
                    <li><a class="she" href="javascript:void(0);" onclick="checkIsInstall()">检查插件</a></li>
                    <li><a class="watch" href="javascript:void(0);" onclick="nbllPrintPreview()">打印</a></li>
                </ul>
            </div>
            <div>
                <object id="LODOP_OB_NBLL" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0>
                    <embed id="LODOP_EM_NBLL" type="application/x-print-lodop" width=0 height=0
                           pluginspage="install_lodop32.exe"></embed>
                </object>
                <div id="nbll_print_id" class="textcon">
                    <table id="nbll_print_table" class="tb" style="width: 100%;font-size:13px;">
                        <tbody>
                        <colgroup>
                            <col width="10%;"/>
                            <col width="27%"/>
                            <col width="15%;"/>
                            <col width="20%"/>
                            <col width="12%;"/>
                            <col width="23%"/>
                        </colgroup>
                        <tbody>
                        <tr>
                            <th>发料仓库:</th>
                            <td><input id="nbllprint_flck" class="input-tian" readonly="readonly"
                                       value="${(lld.thck.mc)!}"/></td>
                            <td rowspan="3" colspan="2" style="text-align: center;font-size: 18px">
                                <span id="nbllprint_lldmc" style="font-size: 20px;">淮矿现代物流物资领料单</span>
                            </td>
                            <th>领料单编号:</th>
                            <td><input id="nbllprint_ppdh" class="input-tian" readonly="readonly"
                                       value="${(lld.lldh)!}"/></td>
                        </tr>
                        <tr>
                            <th>领料单位:</th>
                            <td><input id="nbllprint_lldw" class="input-tian" readonly="readonly"
                                       value="${(lld.llgs.jc)!}"/>
                            </td>
                            <th>制单日期:</th>
                            <td><input id="nbllprint_zdrq" class="input-tian" readonly="readonly"
                                       value="<#if lld??>${(lld.dateCreated?date)!}</#if>"/></td>
                        </tr>
                        <tr>
                            <th>领料人:</th>
                            <td><input id="nbllprint_llr" class="input-tian" readonly="readonly"
                                       value="${(lld.llr.xm)!}"/>
                            </td>
                            <th>发料日期:</th>
                            <td><input id="nbllprint_flrq" class="input-tian" readonly="readonly"
                                       value="<#if lld??>${(lld.flrq?date)!}</#if>"/></td>
                        </tr>
                        </tbody>
                    </table>
                </div>

                <div id="nbll_content_id" class="textcon"></div>

                <div id="nbll_detail_id" class="textcon">
                    <table class="tb" style="width: 100%;font-size:13px;">
                        <colgroup>
                            <col width="10%;"/>
                            <col width="23%"/>
                            <col width="10%;"/>
                            <col width="23%"/>
                            <col width="10%;"/>
                            <col width="23%"/>
                        </colgroup>
                        <tbody>
                        <tr>
                            <th>备注：</th>
                            <td colspan="5"><input class="input-tian" value="${(lld.bz)!}"/></td>
                        </tr>
                        <tr>
                            <th>审批人：</th>
                            <td><input class="input-tian" value="${(lld.shr.xm)!}"/></td>
                            <th>发料员：</th>
                            <td><input class="input-tian" value="${(lld.flr.xm)!}"/></td>
                            <th>制单人：</th>
                            <td><input class="input-tian" value="${(lld.createUser.xm)!}"/></td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>